/*
 * app_debug.h
 *
 *  Created on: 2017-12-19
 *      Author: root
 */
#ifndef APP_DEBUG_H_
#define APP_DEBUG_H_
#include "log.h"
#include "stddef.h"

#define TITLE_CAN  "[CANS]"
#define _DEBUG_     0     //临时显示  内存地址  地址错误时  1
#if(_DEBUG_ == 1)
#define DEBUG_SHOW(x,...) log_debug_new(TITLE_CAN,"[MYSHOW]"#x"\n", ##__VA_ARGS__)
#else
#define DEBUG_SHOW(x,...)
#endif

#define _TCU_CAN_ 0  //与TCU通信CAN口调试
#if(_TCU_CAN_ == 1)
#define candll_debug(x,...) log_debug_new(TITLE_CAN,"[CANDLL]"#x"\n", ##__VA_ARGS__)
#define candll_debug1(x,...) log_debug_new(TITLE_CAN,"[CANDLL]"#x"\n", ##__VA_ARGS__)
#else
#define candll_debug(x,...)
#endif
#define _TCU_CAN_DB_  0 //与TCU通信CAN口调试
#if(_TCU_CAN_DB_ == 1)
#define can_pro_debug(x,...)     log_debug_new(TITLE_CAN,"[CANDLL]"#x"\n", ##__VA_ARGS__)
#define can_pro_debug1(x,...)     log_debug_new(TITLE_CAN,"[CANDLL]"#x"\n", ##__VA_ARGS__)
#else
#define can_pro_debug1(x,...)
#define can_pro_debug(x,...)     // log_debug_new(TITLE_CAN,"[CANDLL]"#x"\n", ##__VA_ARGS__)
#endif


#endif /* APP_DEBUG_H_ */
